You have to pass a domain and an error code, not just an error
code.
Fixes https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6540
Signed-off-by: Adam Williamson <awilliam@redhat.com>
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2725>
try {
bookmarks.load_from_file(recentFile);
} catch (e) {
- if (!e.matches(GLib.BookmarkFileError.FILE_NOT_FOUND)) {
+ if (!e.matches(GLib.BookmarkFileError, GLib.BookmarkFileError.FILE_NOT_FOUND)) {
log(`Could not open recent file ${uri}: ${e.message}`);
return;
}